package com.xja.book.service;

import com.xja.book.entity.Booktype;

import java.util.List;

public interface BookTypeService {
    //查询所有的图书类型
    List<Booktype> booktypes()throws Exception;

    //查询一个
    Booktype selectone()throws Exception;
    //增加一个
    public void addBooktype(Integer typeId)throws Exception;
    //删除一个
    void  deleteone(Integer typeId)throws Exception;
    //修改
    void  updateByPrimaryKey(Booktype record)throws Exception;

    //删除方法
    void deleteByPrimaryKey(Integer typeId)throws Exception;

}
